﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayLibertyGuideBlueprintManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.Liberty.GuideBlueprintManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 6, 1, 1);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInit", _m_OnInit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdateChapter", _m_OnUpdateChapter);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadChapterBlueprintImmediate", _m_LoadChapterBlueprintImmediate);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadChapterBlueprintASync", _m_LoadChapterBlueprintASync);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroyChapterBlueprint", _m_DestroyChapterBlueprint);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnLogOut", _m_OnLogOut);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "GuideChapters", _g_get_GuideChapters);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "GuideChapters", _s_set_GuideChapters);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.GuideBlueprintManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.GuideBlueprintManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.GuideBlueprintManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.GuideBlueprintManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnInit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _chapterId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.OnInit( _chapterId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnUpdateChapter(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _chapterId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.OnUpdateChapter( _chapterId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadChapterBlueprintImmediate(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter _guideChapter = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter));
                    
                    gen_to_be_invoked.LoadChapterBlueprintImmediate( _guideChapter );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadChapterBlueprintASync(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter _guideChapter = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter));
                    
                    gen_to_be_invoked.LoadChapterBlueprintASync( _guideChapter );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DestroyChapterBlueprint(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter _guideChapter = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter));
                    
                    gen_to_be_invoked.DestroyChapterBlueprint( _guideChapter );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnLogOut(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnLogOut(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_GuideChapters(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.GuideChapters);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_GuideChapters(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.GuideBlueprintManager gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.GuideBlueprintManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.GuideChapters = (System.Collections.Generic.List<Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Yoozoo.Gameplay.Liberty.GuideBlueprintManager.GuideChapter>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
